package com.TIEmulator;

import android.app.Activity;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;

public class MyAct extends Activity
  implements View.OnClickListener
{
  protected static final int EXIT_ID = 1;

  private void displayExitNotice()
  {
    1PromptListener local1PromptListener = new 1PromptListener(this);
    new AlertDialog.Builder(this).setTitle(getString(2131165206)).setMessage(2131165207).setPositiveButton(17039379, local1PromptListener).setNegativeButton(17039369, null).show();
  }

  public void onClick(DialogInterface paramDialogInterface, int paramInt)
  {
  }

  public void onClick(View paramView)
  {
    switch (paramView.getId())
    {
    default:
    case 2131296327:
    }
    while (true)
    {
      return;
      Log.v(super.toString(), "Exit button was pressed!");
      finish();
    }
  }

  public boolean onCreateOptionsMenu(Menu paramMenu)
  {
    boolean bool = super.onCreateOptionsMenu(paramMenu);
    paramMenu.add(0, 1, 0, 2131165204);
    return bool;
  }

  public boolean onOptionsItemSelected(MenuItem paramMenuItem)
  {
    switch (paramMenuItem.getItemId())
    {
    default:
    case 1:
    }
    for (boolean bool = super.onOptionsItemSelected(paramMenuItem); ; bool = true)
    {
      return bool;
      displayExitNotice();
    }
  }
}
